package com.mybatis.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author liuxiaoding
 * @Date 2019/11/18
 **/
@RestController
public class ExcetionController {

    /**
     * 测试抛出异常
     * @return
     */
    @RequestMapping(value = "testException")
    public String testException(){
        String str="a1234";
        Integer num=Integer.valueOf(str);
        return "ok";
    }
}
